﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace HotelManageSystem.Migrations
{
    /// <inheritdoc />
    public partial class AddedSomeInitialData : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Rooms",
                columns: new[] { "Id", "Model", "Price", "State" },
                values: new object[,]
                {
                    { 1001, 1, 350m, 1 },
                    { 1002, 3, 350m, 1 },
                    { 1003, 4, 350m, 1 },
                    { 1004, 4, 350m, 1 },
                    { 1005, 4, 350m, 1 },
                    { 1006, 4, 350m, 1 },
                    { 1007, 4, 350m, 1 }
                });

            migrationBuilder.InsertData(
                table: "Workers",
                columns: new[] { "Id", "ContactData", "ContactType", "Gender", "Job", "Name", "PasswordHash", "PasswordSalt", "PriviledgeLevel" },
                values: new object[] { 1, "18978162304", 1, 1, 5, "罗二", new byte[0], new byte[0], 0 });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1001);

            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1002);

            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1003);

            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1004);

            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1005);

            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1006);

            migrationBuilder.DeleteData(
                table: "Rooms",
                keyColumn: "Id",
                keyValue: 1007);

            migrationBuilder.DeleteData(
                table: "Workers",
                keyColumn: "Id",
                keyValue: 1);
        }
    }
}
